package com.gemme.gemme.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.gemme.gemme.R;

public class GwcItemTopView extends RelativeLayout {
    private Context context;
    Button button1;
    public GwcItemTopView(Context context) {
        this(context,null);
    }

    public GwcItemTopView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    public GwcItemTopView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        this.context = context;
        initView();
    }
    TextView shopname;
    RoundCheckBox checkbox;
    private void initView() {
        LayoutInflater.from(context).inflate(R.layout.gwc_item_top,this);

        shopname = findViewById(R.id.shopname);

        checkbox = findViewById(R.id.checkbox);
    }

    public GwcItemTopView setShopname(String shopNameStr){
        shopname.setText(shopNameStr);
        return this;
    }

    public RoundCheckBox getCheckbox() {
        return checkbox;
    }
}
